package com.dev.op.entity;

import com.dev.op.VO.TestCaseVO;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class JudgeRequest {

    private String code;
    private String language;      // "cpp", "java", "py"
    //应当传入正确测试用例的 input -> expected
    //单位：（s）
    @JsonProperty("time_limit")
    @JsonAlias("time_limit")
    private String timeLimit;
    //单位：（MB）
    @JsonProperty("mem_limit")
    @JsonAlias("mem_limit")
    private String memLimit;

    @JsonProperty("test_cases")
    @JsonAlias("test_cases")
    private List<TestCaseVO> testCases;

    @JsonProperty("run_batch")
    private boolean runBatch;
}
